package com.itcs.trading.mapper;

import com.itcs.trading.model.TerminalInfo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface TerminalInfoMapper {
    int deleteByPrimaryKey(String terminalNo);

    int insert(TerminalInfo record);

    int insertSelective(TerminalInfo record);

    TerminalInfo selectByPrimaryKey(String terminalNo);

    int updateByPrimaryKeySelective(TerminalInfo record);

    int updateByPrimaryKey(TerminalInfo record);
    
    TerminalInfo selectByDeviceId(String deviceId);

	/** 
	 * 根据广场id查询通讯盒列表
	 * @param terminalInfo
	 * @return 
	 */
	List<TerminalInfo> findTerminalByTollstationId(TerminalInfo terminalInfo);
}